package com.exltsoft.fc.entity.admin;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.MappedSuperclass;
import javax.persistence.Table;

import com.exltsoft.fc.entity.IdEntity;


@Entity
//表名与类名不相同时重新定义表名.
@Table(name = "sys_user")
@MappedSuperclass
public class User{
	
	protected Long id;
	private String usrcode;
	private String usrpsw;
	
	
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "usrid")
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public String getUsrcode() {
		return usrcode;
	}
	public void setUsrcode(String usrcode) {
		this.usrcode = usrcode;
	}
	public String getUsrpsw() {
		return usrpsw;
	}
	public void setUsrpsw(String usrpsw) {
		this.usrpsw = usrpsw;
	}
		
}
